package cn.yunxiang.summer.common.constant;

/**
 * 全局的key常量 (业务无关的key)
 *
 * @author Lion Li
 */
public interface GlobalConstants {

    /**
     * 全局 redis key (业务无关的key)
     */
    String GLOBAL_REDIS_KEY = "global:";

    /**
     * 全局字典 redis key
     */
    String GLOBAL_DICT_KEY = GLOBAL_REDIS_KEY + "sys_dict";

    /**
     * 验证码 redis key
     */
    String CAPTCHA_CODE_KEY = GLOBAL_REDIS_KEY + "captcha_codes:";

    /**
     * 防重提交 redis key
     */
    String REPEAT_SUBMIT_KEY = GLOBAL_REDIS_KEY + "repeat_submit:";

    /**
     * 限流 redis key
     */
    String RATE_LIMIT_KEY = GLOBAL_REDIS_KEY + "rate_limit:";

    /**
     * 三方认证 redis key
     */
    String SOCIAL_AUTH_CODE_KEY = GLOBAL_REDIS_KEY + "social_auth_codes:";

    /**
     * 会员 redis key
     */
    String MEMBER_KEY = GLOBAL_REDIS_KEY + "member:";

    /**
     * 视频 redis key
     */
    String VLOG_KEY = GLOBAL_REDIS_KEY + "vlog:";

    /**
     * 会员视频 redis key
     */
    String GLOBAL_OFFSET = GLOBAL_REDIS_KEY + "offset:";


    /**
     * 热点视频 redis key
     */
    String HOT_VLOG_TAG =   "HOT";
    /**
     * 我喜欢的视频 redis key
     */
    String GLOBAL_VLOG_DOILIKE = "global:vlog:doilike:";
    String GLOBAL_VLOG_MY_LIKED_LIST= "global:vlog:myliked:list:";
    /**
     * 我喜欢的视频数量 redis key
     */
    String GLOBAL_VLOG_MY_LIKED_COUNT = "global:vlog:myliked:count:";
    /**
     * 视频被喜欢的数量 redis key
     */
    String GLOBAL_VLOG_LIKED_COUNT = "global:vlog:myvlogliked:count:";

    String GLOBAL_VLOG_ALL_LIKED_COUNT="global:vlog:myallliked:count:";


    String GLOBAL_MEMBER_FANS_COUNT="global:member:myfans:count:";

     /**
     * 我关注的视频数量 redis key
     */
    String GLOBAL_MEMBER_FOLLOW_COUNT="global:member:myfollow:count:";


    /**
     * 我关注的视频数量 redis key
     */
    String GLOBAL_MEMBER_FRIENDS_COUNT="global:member:myfriends:count:";

    String GLOBAL_MEMBER_DOIFOLLOW="global:member:doifollow:";






}
